<template>
    <div class="wrapper">
        <swiper :options="swiperOption">
            <swiper-slide v-for="(item,index) of list" :key="item.id">
                <img class="img" :src="item.img" alt="">
            </swiper-slide>
            <div class="swiper-pagination"  slot="pagination"></div>
        </swiper>
    </div>
</template>

<script>
    export default{
        name:"DetailsBanner",
         props:{
            list:Array
        },
        data (){
            return {
                swiperOption:{
                    pagination:".swiper-pagination",
                    loop:true,
                }
            }
        }
    }
</script>

<style lang="stylus" scoped>
.wrapper
    width 3.75rem
    height 3.75rem
    img 
        width 100% 
</style>

